import React from 'react'
import {StyleSheet,View,Text,Image} from 'react-native'
import {PropTypes} from 'prop-types';
import px from '../util/px'

export default function Tag({mLeft,borderColor,fontColor,text}){
    return <Text style={{marginLeft:mLeft,fontSize:14,borderWidth:1,borderColor,padding:px(11),color:fontColor}}>{text}</Text>

}

Tag.propTypes={
    borderColor:PropTypes.string,
    fontColor:PropTypes.string,
    text:PropTypes.string.isRequired,
    mLeft:PropTypes.number
}
Tag.defaultProps={
    borderColor:'rgba(153,153,153,0.3)',
    fontColor:'#999999',
    mLeft:0
}